﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="CadastrarTipoSolicitante.aspx.cs" Inherits="Atendex.Web.CadastrarTipoSolicitante" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h3>Cadastro de Tipos de Solicitante</h3>
    <div id="page-form">
        <p>
            <asp:Label ID="lblMessage" runat="server" ForeColor="Red" Visible="false"></asp:Label>
        </p>
        <asp:Panel runat="server" ID="pnlCadastro">
        <fieldset class="form-data">
            <p>
                <asp:Label ID="lblNome" runat="server" Text="Nome" AssociatedControlID="txtNome"></asp:Label>
                <asp:TextBox ID="txtNome" runat="server"></asp:TextBox>
            </p>
        </fieldset>
        <fieldset class="form-data">
            <p>
                <asp:Label ID="lblTiposDisponiveis" runat="server" Text="Solicitações" AssociatedControlID="lstTiposSolicitacoesDisponiveis"></asp:Label>
                <asp:ListBox ID="lstTiposSolicitacoesDisponiveis" runat="server" 
                    CssClass="list" SelectionMode="Multiple" Rows="6"></asp:ListBox>
                <asp:Button ID="btnAddTipoSolicitacao" runat="server" Text="+Adicionar" 
                    CssClass="list" Width="80px" onclick="btnAddTipoSolicitacao_Click" />
            </p>
            <p>
                <asp:Label ID="lblTiposEscolhidos" runat="server" Text="Solicitações Selecionados" AssociatedControlID="lstTiposSolicitacoesEscolhidos"></asp:Label>
                <asp:ListBox ID="lstTiposSolicitacoesEscolhidos" runat="server" CssClass="list" 
                    SelectionMode="Multiple" Rows="6"></asp:ListBox>
                <asp:Button ID="btnRemoveTipoSolicitcao" runat="server" Text="-Remover" 
                    CssClass="list" Enabled="False" 
                    Width="80px" onclick="btnRemoveTipoSolicitcao_Click"/>
            </p>
        </fieldset>
        <fieldset class="actions">
            <asp:Button ID="btnSubmit" runat="server" Text="Submeter" 
                onclick="btnSubmit_Click" />
            <asp:Button runat="server" ID="btnLimpar" Text="Limpar" OnClick="btnLimpar_Click" />
            <asp:Button ID="btnExcluir" runat="server" Text="Excluir" Visible="false" 
                onclick="btnExcluir_Click" />
        </fieldset>
        <fieldset>
            <legend>Lista de Tipos de Solicitantes</legend>
        <asp:GridView ID="gvTiposSolicitantes" runat="server" CssClass="grid-view" 
                AutoGenerateColumns="false" onrowcommand="gvTiposSolicitantes_RowCommand">
            <Columns>
                <asp:ButtonField ButtonType="Button" Text="Editar" CommandName="Editar" />
                <asp:BoundField DataField="Nome" HeaderText="Nome" />
            </Columns>
        </asp:GridView>
        </fieldset>
        </asp:Panel>
    </div>
</asp:Content>
